import {request} from "../../request";

export function getCheckdetailById(id){
    return request({
        url:`/lswms/checkdetail/${id}`,
        method:'get'
    })
}


export function getCheckdetailPage(data){
    return request({
        url:'/lswms/checkdetail/page',
        method:'get',
        data:data
    })
}

export function putCheckdetail(data){
    return request({
        url:'/lswms/checkdetail',
        method:'put',
        data:data
    })
}
export function postCheckdetail(data){
    return request({
        url:'/lswms/checkdetail',
        method:'post',
        data:data
    })
}

export function deleteCheckdetail(data){
    return request({
        url:`/lswms/checkdetail`,
        method:'delete',
        data:data
    })
}
export function exportCheckdetail(data){
    return request({
        url:`/lswms/checkdetail/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function putCheckdetailEditUpdate(data){
    return request({
        url:'/lswms/checkdetail/editUpdate',
        method:'put',
        data:data
    })
}

export function getCheckdetail(data){
    return request({
        url:`/lswms/checkdetail/getCheckdetail/${data}`,
        method:'get'
    })
}

export function getcheckdetailKeyAndLocationByTray(data){
    return request({
        url:`/lswms/checkdetail/getcheckdetailKeyAndLocationByTray/${data}`,
        method:'get'
    })
}

export function saveCheckdetailIn(data){
    return request({
        url:`/lswms/checkdetail/saveCheckdetailIn`,
        method:'post',
		data:data
    })
}

export function putCheckdetailSave(data){
    return request({
        url:`/lswms/checkdetail/putCheckdetailSave`,
        method:'put',
		data:data
    })
}

export function putCheckdetailSave2(data){
    return request({
        url:`/lswms/checkdetail/putCheckdetailSave2`,
        method:'put',
        data:data
    })
}

export function putCheckdetailSaveUniquecodes(data){
    return request({
        url:`/lswms/checkdetail/putSaveUniquecodes`,
        method:'put',
		data:data
    })
}

